Page({
  data: {
    schema: [{
      label:'类型',
      prop:'type',
      type:'picker',
      labelOptions:['success','success_no_circle','info','warn','waiting','cancel','download','search','clear'],
      valueOptions:['success','success_no_circle','info','warn','waiting','cancel','download','search','clear']
    },{
      label:'大小',
      prop:'size',
      type:'number',
    },{
      label:'颜色',
      prop:'color',
      type:'text',
    }],
    formData: {
      type:'success',
      size:23,
      color:'red'
    },
    title: '',
    result: '',
    zh:'',
    apiType: '',
    remark: '',
    webUrl: '',
    apiName: '',
  },
  onShareAppMessage() {
    return {
      title: 'icon',
      path: 'packageComponent/pages/content/icon/icon'
    }
  },
  onLoad(options) {
    this.setData({
      apiType: options.zh,
      title: options.title,
      zh: options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
  },
  getFormData(e){
    this.setData({
      formData:e.detail.formData
    })
  }
})
